
<%@page import="com.dts.project.dao.MobileCardSalesDao"%>
<%@page import="com.yourcompany.struts.form.MobileCardSalesForm"%>
<%@page import="com.dts.project.dao.MobileCardDetailsDao"%>
<%@page import="com.dts.core.util.CoreList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.yourcompany.struts.form.MobileCardDetailsForm"%>
<%@page import="com.dts.dae.dao.ProfileDAO"%>
<%@page import="com.dts.dae.model.Profile"%>
<%@page import="com.dts.project.dao.MobileOperatorMasterDao"%>
<%@page import="com.yourcompany.struts.form.MobileOperatorMasterForm"%> 
 
 <%
 int id=Integer.parseInt(request.getParameter("Id"));
 MobileCardSalesDao dao=new MobileCardSalesDao();
 MobileCardSalesForm form=dao.ViewMobileCardSalesById(id);
 %>
	 		<form action="UpdateMobileCardSalesAction.jsp"><table align="center">
			<tr><td>SaleId</td><td><input type=text name="SaleId" value="<%=id%>"></td>
			<tr><td>CardId : </td><td><select name="cardId"/>
			<%
			MobileCardDetailsDao dao1=new MobileCardDetailsDao();
			CoreList cl1=dao1.ViewMobileCardDetails();
			Enumeration en1=cl1.elements();
			while(en1.hasMoreElements()) 
			{
			MobileCardDetailsForm form1=(MobileCardDetailsForm)en1.nextElement(); 
			 %><option value="<%=form1.getCardId()%>"><%=form1.getCardName()%></option>
			 <%}%></select></td></tr> 
			 <tr><td>UserId : </td><td><select name="UserId">
			<%
			ProfileDAO dao3=new ProfileDAO();
			Profile model3=null;
			CoreList cl3=dao3.getuserdetails();
			Enumeration en3=cl3.elements();
			while(en3.hasMoreElements())
			{
			model3=(Profile)en3.nextElement();
		 
			%>
			<option value="<%=model3.getUserid() %>"><%=model3.getLoginID() %></option>
			 <%} %>
			</select></td></tr>
			<tr><td>OperatorId : </td><td><select name="operationId"/>
			<%MobileOperatorMasterDao dao2=new MobileOperatorMasterDao();
			CoreList cl2=dao2.ViewMobileOperatorMaster();
			Enumeration en2=cl2.elements();
			while(en2.hasMoreElements())
			{
			MobileOperatorMasterForm form2=(MobileOperatorMasterForm)en2.nextElement();
			 %>
			 <option value="<%=form2.getOperatorId() %>"><%=form2.getOperatorName() %> 
			 <%} %></option></td></tr>
			<tr><td>SaleDate : </td><td><input type=text name="saleDate" value="<%=form.getSaleDate() %>"/> </td></tr>
		 
			<tr><td></td><td><input type=submit name="Register" value="Register"/></td></tr></table>
		</form>